@extends('shared.master')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12">
            <ol class="breadcrumb layout-title">
                                    <li><a href="{{url('functions')}}"><i class="fa fa-user fa-fw"></i> Functions</a></li>
                                    <li class="active" > Detail</li>
            </ol>
            {{PageData::Error()}}
            <div class="form-group">
                <label>Name</label>
                <p class="form-control-static">{{$Model->getName()}}</p>
            </div>
            <div class="form-group">
                <label>Url</label>
                <p class="form-control-static">{{$Model->getUrl()}}</p>
            </div>
            <div class="form-group">
                <label>Icon</label>
                <p class="form-control-static"><i class="fa fa-{{$Model->getIcon()}}"></i> {{$Model->getIcon()}}</p>
            </div>
            <div class="form-group">
                <label>Sequence</label>
                <p class="form-control-static">{{$Model->getSequence()}}</p>
            </div>
            <div class="form-group">
                <label>Module</label>
                <p class="form-control-static">{{$Model->getModule()!=null ? $Model->getModule()->getName() : "-"}}</p>
            </div>
            <div class="form-group">
                <label>Is Show</label>
                <p class="form-control-static">{{$Model->getIsShow() ? "TRUE" : "FALSE" }}</p>
            </div>
            <div class="form-group">
                <label>Is Enabled</label>
                <p class="form-control-static">{{$Model->getIsEnabled() ? "TRUE" : "FALSE" }}</p>
            </div>
            <p>
                <button onClick="location.href='{{ action('FunctionsController@edit', $Model->getId()) }}'" type="button" class="btn btn-primary">Edit</button>
                <button onClick="location.href='{{url('functions')}}'" type="button" class="btn btn-primary">Close</button>
            </p>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
</div>
<!-- /.container-fluid -->
    <script>
    
    </script>
@stop